<?php 
/*
 module:		角色管理控制器
 create_time:	2021-07-27 18:11:24
 author:		
 contact:		
*/

namespace app\api\validate;
use think\validate;

class ThroughCar extends validate {

	protected $rule = [
		'fid'=>['require'],
        'type'=>['require'],
		'keyword'=>['length:1,20'],
	];

	protected $message = [
		'fid.require'=>'fid不能为空',
        'type.require'=>'type不能为空',
		'keyword.length'=>'长度不能超过20个字符',
	];

	protected $scene  = [
		'index'=>['fid'],
        'tagList' => ['fid'],
        'tag' => ['fid'],
		'tagLine' => ['fid','keyword']
	];
}

